<?
if($model->id==0){
	$hidden['type']=$this->input->get('type');
	$type=$this->input->get('type');
}
else{
	$type=$model->type;
}
?>

<div class='contentheader'>Neues Contentmodule für <?=$type ?></div>
<?
echo form::open(NULL,'',$hidden);
echo form::hidden('id', $model->id);
echo form::open_fieldset();

echo '<p>';
echo form::label('title', 'Titel');
echo form::input('title',$model->title, 'class="text"');
echo '</p>';

echo '<p>';
echo form::label('description', 'Beschreibung');
echo form::textarea('description', $model->description, 'rows="4" class="text"');
echo '</p>';

echo '<p>';
echo form::label('form', 'Form');
echo form::textarea('form', $model->form, ' class="textbig"');
echo '</p>';
echo '<p>';
echo form::label('preprocess_post', 'Preprocess_post');
echo form::textarea('preprocess_post', $model->preprocess_post, 'class="text"');
echo '</p>';

echo '<p>';
echo form::label('postprocess_model', 'Postprocess Model');
echo form::textarea('postprocess_model', $model->postprocess_model, 'class="text"');
echo '</p>';

echo '<p>';
echo form::label('view_backend', 'View Backend');
echo form::textarea('view_backend', $model->view_backend, ' class="textbig"');
echo '</p>';

echo '<p>';
echo form::label('css_frontend', 'CSS Frontend');
echo form::textarea('css_frontend', $model->css_frontend, ' class="text"');
echo '</p>';

echo '<p>';
echo form::label('view_frontend', 'View Frontend');
echo form::textarea('view_frontend', $model->view_frontend, ' class="textbig"');
echo '</p>';

echo form::close_fieldset();


echo myform::submit();

echo form::close();
?>